import { rainbow_http_get, rainbow_http_post } from '../../utils/axiosAsync';
import { adminLoginType } from '../type/userTpye';

/**
 API方法书写的时候命名最后都加上Api，方便代码中辨认
*/
// 登录请求
export const adminLoginApi = (params: adminLoginType) =>
  rainbow_http_post('/users/login/admin', params);
// 获取用户信息
export const getUserMsgApi = () =>
  rainbow_http_get('/users/getUserMsg',{});
// 退出登录
export const logoutApi = () =>
  rainbow_http_get('/users/logout',{});
